<template>
	<view>
		你好
		<view class="h-120"></view>
		 方法
		<view class="h-120"></view> 
		<view class="" style="display: flex;justify-content: center;">
			<view class="" style="width: 180rpx;">
			<order-number-box @change="valChange($event)" :max="9999999" :min="0" v-model="num" />
			</view>
		</view>
	
	</view>
</template>

<script setup>
	import { onLoad, onUnload, onShow, onHide } from '@dcloudio/uni-app';
	import { ref } from 'vue'; 
	import { useWebSocket } from '@/until/websocketvue.js';
	const { connectWebSocket, sendSocketMessage,initSocketMessage } = useWebSocket();
	
	//onLoad
	onLoad((option) => { 
		// connectWebSocket()
		// initSocketMessage() 
	}) 
	
	//onUnload
	onUnload(() => {
		 
	}) 
	
	const num = ref(0)
	
	const valChange = (e)=> {
		console.log(e)
	}
</script>